package org.example.member.vo.front;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.example.core.valid.annontation.ListValue;
import org.hibernate.validator.constraints.Length;


/**
 * @author 小杰_cc
 * @version 1.0
 */
public class MemberUpdateVo {
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Length(max = 32, message = "用户名过长")
    private String username;
    /**
     * 性别(0-未知,1-男,2-女)
     */
    @NotNull(message = "性别不能为空")
    @ListValue(value = {0, 1, 2})
    private Integer gender;
    /**
     * 生日
     */
    private String birthday;
    /**
     * 所在城市
     */
    private String city;

    /**
     * 职业
     */
    private String job;
    /**
     * 个性签名
     */
    @Length(max = 35)
    private String sign;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}